package behavioral.observer.push;

public class Main {
    public static void main(String[] args) {
        CustomSubject subject = new CustomSubject();
        CustomeObserver observer1 = new CustomeObserver();
        CustomeObserver observer2 = new CustomeObserver();
        subject.attach(observer1);
        subject.attach(observer2);
        subject.update("我第一次更新");
        subject.update("我第二次更新");
    }
}
